home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / TOOLBOOK / IDC136.ZIP / SAMPLER.ZIP / COMM136.TBK (.txt) next >
Asymetrix ToolBook File  |  1993-12-16  |  43KB  |  879 lines

  1. IDC Common Handlers
  2. Times New Roman
  3. Times New Roman
  4. Times New Roman
  5. Times New Roman
  6. iuSjoNqyA
  7. Times New Roman
  8. Version
  9. C:\KEN\IDC\SYS133.TBK
  10. C:\KEN\IDC\COMM136.TBK
  11. rightbuttondoubleClick
  12. B"filescripts"
  13. rightbuttondoubleClick
  14. rightbuttondoubleClick
  15. filescripts
  16. Version
  17. Interactive Document Compiler Version 1.3601 Compiler
  18. :PHYSSIZE
  19. This is a System Book required by all books created with the IDC Compiler.
  20.   A copy must reside in the same directory as any such book.
  21. It has no useful independent functionality.
  22. sysSuspendMessages 
  23. buttonUp
  24. buttonUp
  25. Resolution
  26. Screen resolution is 800 x 600
  27. filescripts
  28. ~(".",n)
  29. n & ".scr"
  30. filescripts 
  31. buttonUp
  32. buttonUp
  33. filescripts
  34. File Scripts
  35. Screen resolution is 800 x 600816
  36. -- Standard handlers 
  37. 8compiled 
  38. -- Note: Messages 
  39. the actual 
  40. 8must explicitly state
  41. setupWindow 
  42. B"filescripts"
  43. path(
  44. & "compiler\utility.tbk"
  45. "Version" 
  46. ~("\",f) 
  47. filename f
  48. ~("\",f) 
  49. Vi+1 
  50. filestem f
  51. tail(":",f)
  52. ~("\",f) > 0
  53.  \",f)
  54. ~(".",f) 
  55. O c,s
  56. ~(c,s)
  57. setupBook
  58. 4visited,addressstack,usebookmarks
  59. ,pagewidth,pagedepth
  60. 4nsep,nend,anchorsshown,allowexit,screen
  61. -- prevents warning message re 
  62. -- requires 
  63. xvia Quit
  64. l-X etc.
  65. "VGA"
  66. sizePage 
  67. 6.6 * 1440 -- are these ever used
  68. 4.8 * 1440
  69. removeReaderMenus
  70. actionsmenu 
  71. "&Help,Show &Links,&Notes,&Copy Text,&
  72. anchorstyle 
  73. help 
  74. createReaderMenu "&Actions",
  75. "Author" 
  76. c"IDC" 
  77. e"Change Exit Password" 
  78. has been 
  79. entry
  80. InformationFile
  81. scores 
  82. loadScores 
  83. Pages","&Contents,&Visited"
  84. "$Shared$" 
  85. disable "
  86. stringData("
  87. Bookmarks","&List marked 
  88. ,&Mark 
  89. ,&Unmark 
  90. ,&Remove All"
  91. loadBookmarks
  92. zwe need 
  93. ttwo lines every 
  94. notes 
  95. loadNotes 
  96. "$Title$" 
  97. setUpTitlePage
  98. B"Start" 
  99. display
  100.     linkDLL "tbkwin.dll"
  101.         INT HorizontalDisplayRes()
  102. VerticalDisplayRes()
  103. 2es() 
  104.     unlinkDLL "
  105. "Screen resolution 
  106. " && h && "x" && v 
  107. "Resolution"
  108. h < 640 
  109. v <480
  110. Report 
  111. ,h,v,
  112. sizeWindow 
  113. "SVGA"
  114. -sized 
  115. h && v
  116. D -- 
  117. on larger 
  118. d,h,v,small
  119. "The 
  120. " && h & "x" & v && "which 
  121. Error m
  122.     -- sizes 
  123.  ensure that 
  124. no title bar 
  125. /colour still fills 
  126. 12960,8640 -- 9.0
  127. x 6.0
  128. 12960,9040 -- 9.0
  129. x 6.0?
  130. 9792,7200 -- 6.8
  131. x 5.0
  132. setting up 
  133. (IDC error:" && p &&")"
  134.         -- full VGA 
  135. & no border
  136.         -- 
  137. -4, -24, 644, 484
  138.         -- 
  139. -4, -4, 644, 484
  140.         -- 
  141.         -- 
  142. 0, 0, 640, 480
  143.             -- centre 
  144. 76, 56, 724, 544
  145.             --
  146. -4,-4,804,604 -- Shows titlebar
  147. -4,-24,804,604 -- No 
  148. s & "," & p &&")"
  149.             -- 
  150. s,640,480)
  151. s,800,600)
  152. s & "," & p &&")"
  153. h,v,wh,wv
  154. (h-wh)/2-4
  155. (v-wv)/2-4
  156. setupPage
  157. labelPage
  158. preserve 
  159. 4markCopyText,
  160.     -- sets up 
  161. "" && 
  162. && "needs" && 
  163. & "." & CRLF & "
  164. " && 
  165.  &"."
  166. M    $" 
  167. V    $" 
  168. will enable following 
  169. needed
  170. hiddenlinks 
  171. S"ShowLinks"
  172. setanchors 
  173. "boxed,
  174.     -- Initialize 
  175. initialize 
  176.     -- Send optional messages
  177. " && 
  178.  && "
  179. Xbuttons
  180. optionalbuttons 
  181. l -- 
  182. p&& property 
  183. " && p && "
  184. fields
  185. optionalfields 
  186. l -- 
  187. " && p && "
  188. optionalgroups 
  189. l -- 
  190. qstrip(
  191. " && p && "
  192. recordfields
  193. optionalrecordfields 
  194. l -- 
  195. " && p && "
  196.     -- Hide 
  197. " && enquote2(
  198. ) && "
  199. " && 
  200. ) && "
  201.     -- Clear 
  202. cleared 
  203. " && 
  204. ) && "
  205.     --Preserve 
  206. -- assume 
  207. bexcept...
  208. " && 
  209. LabelPage
  210. oneof(
  211. " (*)" 
  212. B"OK"
  213. ,Edit,
  214. informationFile
  215. F-- already loaded
  216. 8) & 
  217. s & ".INF" 
  218. setData "
  219. ","notfound"
  220. readLine(f) 
  221. ~("=",l)
  222. > 0 -- valid 
  223. sysErrorNumber 
  224. =565 
  225. F-- EOF
  226. " && f && "seems 
  227. be invalid."
  228. checkToolBookError
  229. LF -- skip 
  230. calling books
  231. :" & 
  232. B"OK"
  233.  -- assumes 
  234. -> 0 
  235. question
  236. <> 0 
  237. -- Handlers 
  238. 4idcData
  239.  -- Controlled 
  240. saveNotes 
  241. saveScores 
  242. saveBookmarks
  243. sysSuspendMessages 
  244. "DOS" 
  245. "user.exe"
  246. ExitWindows(DWORD,
  247.      FindWindow(
  248. STRING)
  249. ShowWindow(
  250. 2INT)
  251. hWnd 
  252. 90,"Program Manager")
  253. ~0,0)
  254.         -- This also removes 
  255. current 
  256. 8was entered.
  257. F--Can't 
  258.  prompt on 
  259. TitleText(a)
  260. Prompt "Returning 
  261. " && 
  262.  -- signal 
  263. WordCount(u) > 1 
  264. u -- just 
  265. wmethod 
  266. closing 
  267. supply a 
  268. exitPassword 
  269. changeExitPassword
  270. newPassword 
  271. IDCpassword 
  272. "Old 
  273. >-- wrong 
  274. "New 
  275. "Repeat 
  276. >-- verification failed
  277. showHotWords
  278. sysHotWordsShown 
  279. showNotes 
  280. clearPrompt
  281. MarkThisPage
  282. ) Then
  283. UnmarkThisPage
  284. itemnumber(
  285. no longer 
  286. ListMarkedPages
  287. pagelist 
  288. RemoveAll -- 
  289. History -- obsolete
  290. yp,identifier
  291. "$$" 
  292.  unique 
  293. textOverFlow 
  294. $" > 0 
  295. sysLockscreen 
  296. $" > 0 
  297. 8) < 2 
  298. advance 
  299.  $" > 0 
  300. /!$" 
  301. Hseveral backgrounds
  302. "$I" 
  303. filespec(p) 
  304. +    Switching 
  305. " && 
  306. "$$" 
  307. "$A" 
  308. (p) > 1 
  309. filearg(a) 
  310. b && a
  311. Launching" && 
  312. b && a
  313. = 559 
  314. "no such 
  315. %" && b
  316. substpath(p,3)
  317. ( p,s
  318. ~(":",f) 
  319. Vc+1 
  320. retreat
  321. F-- Is 
  322. necessary
  323. have 
  324. document.
  325. cannot use 
  326. leave 
  327. one."
  328. uplevel
  329. F-- Is 
  330. should 
  331. xhappen
  332. c-- Not a 
  333. h < l
  334. sh -- 
  335. firstpage 
  336. /"$Common$"
  337.  -- follows route
  338.     -- returns 
  339.     "$$",l) 
  340. $    i,l)
  341. \     i,l
  342. l ( 0 
  343. incData n,i
  344. value(n,
  345. setvalue(n,
  346. valueData n
  347. ~("=",
  348. eq > 0 
  349. eq-1 
  350. Veq+1 
  351. && "missing 
  352. data 
  353.  n,d,v
  354. (v) > 1 
  355. & v & 
  356. cj < 
  357. ~("=",
  358. eq > 0 
  359. eq-1 
  360. n & "=" & v 
  361. n & "=" & v 
  362. sample s,n,e
  363. s > p 
  364. loadData f
  365. &"trying 
  366. oepn 
  367. /" && f && "[" & 
  368. r& "]"
  369. 32768 -- 
  370. whole 
  371. newFileName newtype
  372. 0*datapath") 
  373. c.(b)
  374. & "." & 
  375. p & "\" & f
  376. Hpopups
  377. -- Are 
  378. ,required 
  379. showPopup t
  380. drawdirect 
  381. newFilename("BMK") 
  382. <> 0 
  383. -- Blanks 
  384. blanks o,d1,d2,t -- 
  385. . recursively -- builds 
  386.     -- o 
  387. processed
  388.     -- d1,d2 
  389. q.delimiters 
  390.     -- t 
  391. remaining 
  392. yet unscanned
  393. ~(d1,t) 
  394. Vbb+1 
  395. ~(d2,
  396. [System]"
  397. o+bb && bl 
  398. bb+bl+2 
  399. (o+tb-1,d1,d2,
  400. blanknumber 
  401. ,charlocation
  402. consists 
  403. pairs 
  404. numbers: 
  405. && length
  406. along 
  407. ,*point result 
  408. <=c+s+1 
  409. -- Utilities
  410. & s & 
  411. s && 
  412. -- Traps
  413. u+there exists no 
  414. called whenever a 
  415. T$x%?
  416. leaveBook
  417. enterPage
  418. disable
  419. enable
  420. setupWindow
  421. leavePage
  422. setupPage
  423. changeExitPassword
  424. newPassword
  425. Report
  426. ShowLinks
  427. LabelPage
  428. setanchors
  429. Notes
  430. setupBook
  431. Prompt
  432. clearPrompt
  433. setUpTitlePage
  434. MarkThisPage
  435. UnmarkThisPage
  436. createReaderMenu
  437. ListMarkedPages
  438. RemoveAll
  439. Visited
  440. sizePage
  441. History
  442. removeReaderMenus
  443. pagelist
  444. Contents
  445. informationFile
  446. advance
  447. retreat
  448. uplevel
  449. sizeWindow
  450. follow
  451. incData
  452. Error
  453. setData
  454. enterBook
  455. loadData
  456. showPopup
  457. checkToolBookError
  458. loadBookmarks
  459. saveBookmarks
  460. initialize
  461. Z4eS'
  462. centre
  463. substpath
  464. oneof
  465. qstrip
  466. itemnumber
  467. filestem
  468. valueData
  469. stringData
  470. readLine
  471. value
  472. TitleText
  473. setvalue
  474. sample
  475. newFileName
  476. filespec
  477. blanks
  478. filename
  479. blanknumber
  480. enquote
  481. filearg
  482. enquote2
  483. enterBook
  484. setupWindow
  485. filescripts
  486. compiler\utility.tbk
  487. Version
  488. reader
  489. compiled
  490. filename
  491. filestem
  492. setupBook
  493. gsizePage
  494. setupWindow
  495. removeReaderMenus
  496. &Help,Show &Links,&Notes,&Copy Text,&Quit
  497. anchorstyle
  498. italic,underline,bold
  499. createReaderMenu
  500. &Actions
  501. Author
  502. createReaderMenu
  503. &Actions
  504. Change Exit Password
  505. InformationFile
  506. scores
  507. loadScores
  508. createReaderMenu
  509. &Pages
  510. &Contents,&Visited
  511. Contents
  512. $Shared$
  513. x%disable
  514. Contents
  515. bookmarks
  516. stringData
  517. createReaderMenu
  518. &Bookmarks
  519. &List marked pages,&Mark this page,&Unmark this page,&Remove All
  520. QBloadBookmarks
  521. notes
  522. loadNotes
  523. $Title$
  524. setUpTitlePage
  525. buttonUp
  526. Start
  527. actionsmenu
  528. anchorsshown
  529. allowexit
  530. screen
  531. compiled
  532. pagewidth
  533. pagedepth
  534. visited
  535. addressstack
  536. usebookmarks
  537. setupWindow
  538. tbkwin.dll
  539. HorizontalDisplayRes
  540. VerticalDisplayRes
  541. HorizontalDisplayRes
  542. VerticalDisplayRes
  543. tbkwin.dll
  544. Screen resolution is
  545. Resolution
  546. #Report
  547. sizeWindow
  548. sizeWindow
  549. sizeWindow
  550. screen
  551. display
  552. Report
  553. The screen is
  554. which is too small for a VGA-sized display.
  555. Error
  556. small
  557. sizePage
  558. Error
  559. in setting up page (IDC error:
  560. sizeWindow
  561. Error
  562. in setting up window (IDC error:
  563. centre
  564. sizeToPage
  565. centre
  566. sizeToPage
  567. Error
  568. in setting up window (IDC error:
  569. centre
  570. enterPage
  571. setupPage
  572. ItlabelPage
  573. compiled
  574. leavePage
  575. preserve
  576. setupPage
  577. screen
  578. Error
  579. needs
  580. Screen is
  581. gsizePage
  582. sizeWindow
  583. gsizePage
  584. sizeWindow
  585. $Pages$
  586. $Contents$
  587. $Help$
  588. x%disable
  589. CopyText
  590. x%disable
  591. Notes
  592. hiddenlinks
  593. enable
  594. ShowLinks
  595. anchorstyle
  596. invert
  597. setanchors
  598. anchorstyle
  599. boxed,invert
  600. x%disable
  601. ShowLinks
  602. initialize
  603. setup
  604. to this book
  605. optionalbuttons
  606. of this page
  607. optionalfields
  608. of this page
  609. optionalgroups
  610. qstrip
  611. of this page
  612. optionalrecordfields
  613. qstrip
  614. of this page
  615. hidden
  616. enquote2
  617. of this background
  618. shown
  619. enquote2
  620. of this background
  621. cleared
  622. clear text of field
  623. enquote
  624. of this background
  625. preserve
  626. hidden
  627. enquote2
  628. markCopyText
  629. screen
  630. anchorsshown
  631. qstrip
  632. LabelPage
  633. Label
  634. oneof
  635. Label
  636. bookmarks
  637. setUpTitlePage
  638. Error
  639. createReaderMenu
  640. removeReaderMenus
  641. File,Edit,Text,Page,Help
  642. informationFile
  643. stringData
  644. filestem
  645. 45setData
  646. notfound
  647. 45setData
  648. readLine
  649. 45setData
  650. readLine
  651. Error
  652. seems to be invalid.
  653. 0checkToolBookError
  654. Error
  655. Error:
  656. Error
  657. Error
  658. addressstack
  659. checkToolBookError
  660. Error
  661. leaveBook
  662. addressstack
  663. disable
  664. enable
  665. idcData
  666. idcData
  667. idcData
  668. notes
  669. saveNotes
  670. scores
  671. saveScores
  672. vOsaveBookmarks
  673. stringData
  674. user.exe
  675. ExitWindows
  676. FindWindow
  677. ShowWindow
  678. Program Mana